package com.trkj.dao.jpa;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojos.YzrStorehouse;

public interface LmbStorehouseDAO extends CrudRepository<YzrStorehouse, String> {
	//根据类型查询仓库信息
	public List<YzrStorehouse> findByStoreKind(String kind);
	
	@Query("select c from YzrStorehouse c where c.storeKind ='耗材供应' and c.storeName like ?1")
	public List<YzrStorehouse> findStoreByckName(String ckName);
}
